import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-10-14
 * Time: 18:29
 */
public class Test {
    public static void main(String[] args) {
        String s="({[]})";
        MyStack stack=new MyStack();
        boolean ret=stack.isValid(s);
        System.out.println(ret);
        int[] input={2,4,3,6,9,6,2};
        int k=3;
        ArrayList list=stack.GetLeastNumbers_Solution(input,k);
        System.out.println(list);

    }
}
